﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tpro6Container.Class.ObjectClass
{
    public class ArmyGroup : ArmyObject
    {
        private List<ArmyObjectGroup> allArmy;
        public ArmyGroup(List<ArmyObjectGroup> allArmy)
        {
            this.allArmy = allArmy;
        }

        public override void ObjectFire()
        {
            foreach (ArmyObjectGroup armys in allArmy)
            {
                armys.ObjectFire();
            }
        }

        public override void ObjectRun()
        {
            foreach (ArmyObjectGroup armys in allArmy)
            {
                armys.ObjectRun();
            }
        }

        public override void ObjectStop()
        {
            foreach (ArmyObjectGroup armys in allArmy)
            {
                armys.ObjectStop();
            }
        }
    }
}
